type Color = string;
export interface ColorMap extends Record<number, Color> {
  other: Color;
}
interface ColorConfigItem extends Record<'normal' | 'hightLight', ColorMap> {}
interface ColorConfig extends Record<'hole' | 'groove', ColorConfigItem> {}

export const baseColorConfig = {
  face: {
    0: '#FFAB00',
    5: '#0ACAFF',
    other: '#16D9A8',
  },
  plank: undefined,
  opacity: 0.5,
  hover: {
    opacity: 0.5,
  },
  select: '#1A7AF8',
};

export const colorConfig: ColorConfig = {
  hole: {
    normal: {
      0: 'green',
      5: 'black',
      other: 'orange',
    },
    hightLight: {
      other: 'red',
    },
  },
  groove: {
    normal: {
      0: 'green',
      5: 'black',
      other: 'orange',
    },
    hightLight: {
      other: 'red',
    },
  },
};
